package net.gateway.piggy.config;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;

public class GatewayConfig {
    public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
        return builder.routes().route(r -> r.path("/user/**")
                .filters(f->f.addRequestHeader("",""))
                .uri("")).build();
    }
}
